[WordPress] Need help with remove_action()

Posted by gabriel on Stack Overflow See other posts from Stack Overflow or by gabriel
Published on 2009-08-11T17:12:57Z Indexed on 2010/03/28 19:23 UTC
Read the original article Hit count: 214

I'm trying to remove the unsightly embedded <STYLE> tag the built-in Recent Comments widget puts in my <HEAD>, but I can't seem to get the syntax right. It originally calls

add_action( 'wp_head', array(&$this, 'recent_comments_style') );

to add it (in wp-includes/default-widgets.php, line 609), and I'm trying to undo it.

I think it should be something like this:

remove_action('wp_head', 'WP_Widget_Recent_Comments::recent_comments_style');

but with all the variations I've tried I still can't get it right. Does anyone know how to achieve this?

Possibly Helpful:

© Stack Overflow or respective owner

Related posts about php

Related posts about Wordpress